import Vue from 'vue'
import App from './App.vue'
import router from './routes'
import store from './store'
import moment from 'moment'


import './api/axios'

// 使用vue add 引入的element-ui ↓
import ElementUI from 'element-ui'
import './assets/scss/index.scss'
Vue.use(ElementUI)

import Vue2Editor from "vue2-editor"
Vue.use(Vue2Editor)


Vue.filter('date', function (value) {
  return moment(value).format('YYYY-MM-DD')
})
Vue.filter('dateTime', function (value) {
  return moment(value).format('YYYY-MM-DD HH:MM:SS')
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
